<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| Typically there is a one-to-one relationship between a URL string
| and its corresponding controller class/method. The segments in a
| URL normally follow this pattern:
|
|	example.com/class/method/id/
|
| In some instances, however, you may want to remap this relationship
| so that a different class/function is called than the one
| corresponding to the URL.
|
| Please see the user guide for complete details:
|
|	http://codeigniter.com/user_guide/general/routing.html
|
| -------------------------------------------------------------------------
| RESERVED ROUTES
| -------------------------------------------------------------------------
|
| There area two reserved routes:
|
|	$route['default_controller'] = 'welcome';
|
| This route indicates which controller class should be loaded if the
| URI contains no data. In the above example, the "welcome" class
| would be loaded.
|
|	$route['404_override'] = 'errors/page_missing';
|
| This route will tell the Router what URI segments to use if those provided
| in the URL cannot be matched to a valid route.
|
*/

$route['default_controller'] = "welcome";
$route['404_override'] = '';

$route['enrollment'] = 'admin/online_settings/onlineenrollment';
$route['studentportal'] = 'admin/online_settings/studentportal';
$route['login'] = 'auth/login';
$route['logout'] = 'auth/logout';
$route['settings'] = 'admin/system_settings';
$route['log'] = 'welcome/login2';




/******************************
 * Registrar Routes
 * Routes used by registrar controller
 ******************************/
$route['update-student-profile/(:num)'] = 'profile/student/$1';

/******************************
 * Routes Used By The ROOM/SECTION/SCHEDULE PAGES
 ******************************/
$route['rss-rooms'] = 'room_section_subject/rooms'; //view rooms
$route['rss-add-room/(:any)'] = 'room_section_subject/add_room/$1'; // add rooms
$route['rss-add-room'] = 'room_section_subject/add_room'; // add rooms
$route['rss-view-room/(:num)'] = 'room_section_subject/view_room_data/$1'; // add rooms
$route['rss-edit-room/(:num)'] = 'room_section_subject/edit_room/$1'; // add rooms
$route['rss-section-detail/(:num)'] = 'room_section_subject/view_section_students/$1'; // add rooms

$route['rss-add-schedule/(:num)'] = 'room_section_subject/add_schedule/$1';
$route['rss-update-schedule/(:num)/(:num)'] = 'room_section_subject/update_schedule/$1/$2';

$route['rss-section'] = 'room_section_subject/sections';
$route['rss-section/(:num)'] = 'room_section_subject/sections/$1';
$route['rss-add-section'] = 'room_section_subject/add_section';
$route['rss-update-section/(:num)'] = 'room_section_subject/update_section/$1';
$route['rss-section-schedule/(:num)'] = 'room_section_subject/schedule_by_section/$1';
$route['rss-get-curriculum/(:num)'] = 'room_section_subject/get_subject_curriculum/$1';

$route['destroy-section/(:num)'] = 'room_section_subject/destroy_section/$1';
$route['restore-section/(:num)'] = 'room_section_subject/undestroy_section';
$route['destroy-schedule/(:num)'] = 'room_section_subject/delete_schedule';
$route['restore-schedule/(:num)'] = 'room_section_subject/restore_schedule';



$route['curriculum'] = 'room_section_subject/curriculum';
$route['set-curriculum/(:num)'] = 'room_section_subject/set_curriculum/$1';

/******************************
 * Routes Used By The student_fees pages
 ******************************/
$route['tuition-fees'] = 'student_fees/tuition';
$route['miscellaneous-fees'] = 'student_fees/miscellaneous';
$route['other-fees'] = 'student_fees/others';
$route['elective-fees'] = 'student_fees/electives';
$route['uniform-fees'] = 'student_fees/uniform';
$route['add-fees'] = 'student_fees/add';
$route['delete-fees/miscellaneous/(:any)'] = 'student_fees/delete_fee/$1';
$route['delete-fees/tuition/(:any)'] = 'student_fees/delete_fee/$1';
$route['delete-fees/cca/(:any)'] = 'student_fees/delete_fee/$1';
$route['delete-fees/other/(:any)'] = 'student_fees/delete_fee/$1';
$route['delete-fees/electives/(:any)'] = 'student_fees/delete_fee/$1';
$route['update-fees/(:num)'] = 'student_fees/update_fees/$1';
$route['update-fees'] = 'student_fees/update_fees';
$route['enable-mfee/(:num)/(:any)'] = 'student_fees/enable_misc_fee/$1/$2';
$route['enable-tfee/(:num)/(:any)'] = 'student_fees/enable_tuit_fee/$1/$2';
$route['enable-cca/(:num)/(:any)'] = 'student_fees/enable_cca_fee/$1/$2';
$route['disable-fee/(:num)/(:any)'] = 'student_fees/disable_fee/$1/$2';
$route['assessment-fees'] = 'student_fees/assessment';

/******************************
 * Routes Used By EXCEL GENERATOR
 ******************************/

// excel_gen/generate_excel_student_payments_daily/[year]/[month]//[day][auth]
$route['mdr/(:num)/(:num)/(:num)/(:any)'] = 'excel_gen/generate_excel_student_payments_daily/$1/$2/$3/$4';
$route['gmr/(:any)/(:any)'] = 'pdf/monthly_reports/$1/$2';

/******************************
 * Routes Used By The backend administrator
 ******************************/
$route['bea'] = 'backend_administrator/login';

/* End of file routes.php */
/* Location: ./application/config/routes.php */